package net.csdn.business.mirror.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@Configuration
@RefreshScope
public class ImportMirrorConfig {

    @Value("${importMirror.externUid}")
    private String externUid;

    @Value("${importMirror.organizationId}")
    private String organizationId;

    @Value("${importMirror.organization:mirror}")
    private String organization;

    @Value("${importMirror.targetOrgId}")
    private String targetOrgId;

    @Value("${importMirror.token}")
    private String token;

    @Value("${importMirror.mirrorUrl}")
    private String mirrorUrl;

    @Value("${importMirror.limitDomesticCount:3}")
    private Integer limitDomesticCount;

    @Value("${importMirror.limitAbroadCount:3}")
    private Integer limitAbroadCount;

    @Value("${importMirror.abroadUrls:github.com}")
    private List<String> abroadUrls;
}